package com.dianping.cat.core.dal;

import java.util.Date;
import org.unidal.dal.jdbc.AbstractDao;
import org.unidal.dal.jdbc.DalException;
import org.unidal.dal.jdbc.Readset;
import org.unidal.dal.jdbc.Updateset;

public class WeeklyReportDao extends AbstractDao {
/* 10 */   public WeeklyReport createLocal() { return new WeeklyReport(); }





  public int deleteByPK(WeeklyReport proto) throws DalException { return getQueryEngine().deleteSingle(WeeklyReportEntity.DELETE_BY_PK, proto); }





  public int deleteReportByDomainNamePeriod(WeeklyReport proto) throws DalException { return getQueryEngine().deleteSingle(WeeklyReportEntity.DELETE_REPORT_BY_DOMAIN_NAME_PERIOD, proto); }




  public WeeklyReport findByPK(int keyId, Readset<WeeklyReport> readset) throws DalException {
/* 28 */     WeeklyReport proto = new WeeklyReport();

/* 30 */     proto.setKeyId(keyId);

/* 32 */     return (WeeklyReport)getQueryEngine().querySingle(WeeklyReportEntity.FIND_BY_PK, proto, readset);
  }






  public WeeklyReport findReportByDomainNamePeriod(Date period, String domain, String name, Readset<WeeklyReport> readset) throws DalException {
/* 41 */     WeeklyReport proto = new WeeklyReport();

/* 43 */     proto.setPeriod(period);
/* 44 */     proto.setDomain(domain);
/* 45 */     proto.setName(name);

/* 47 */     return (WeeklyReport)getQueryEngine().querySingle(WeeklyReportEntity.FIND_REPORT_BY_DOMAIN_NAME_PERIOD, proto, readset);
  }








/* 57 */   protected Class<?>[] getEntityClasses() { return new Class[] { WeeklyReportEntity.class }; }



/* 61 */   public int insert(WeeklyReport proto) throws DalException { return getQueryEngine().insertSingle(WeeklyReportEntity.INSERT, proto); }





/* 67 */   public int updateByPK(WeeklyReport proto, Updateset<WeeklyReport> updateset) throws DalException { return getQueryEngine().updateSingle(WeeklyReportEntity.UPDATE_BY_PK, proto, updateset); }
}


/* Location:              /Users/hanfei/Documents/apache-tomcat-9.0.24/webapps/cat/WEB-INF/lib/cat-core-3.0.0.jar!/com/dianping/cat/core/dal/WeeklyReportDao.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.0.7
 */